import requests

class HrmLoginApi:
    def login(self, req_data):
        resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                             json=req_data)
        return resp


if __name__ == '__main__':
    h = HrmLoginApi()
    req_data = ({"mobile": "13567835421", "password": "123456"})
    result = h.login(req_data)
    print(result.json())





